tup = (1, 2.5, "python", [3, 4])
lst = list(tup)
sum_numbers = 0

for i in range(len(lst)):
    if isinstance(lst[i], (int, float)):
        sum_numbers += lst[i]
    elif isinstance(lst[i], str):
        lst[i] = lst[i].upper()
    elif isinstance(lst[i], list):
        lst[i][0] = 10

tup = tuple(lst)
print("处理后的元组：", tup)
print("数字元素的和：", sum_numbers)